package com.rzjm.exercise.module.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rzjm.exercise.common.base.service.impl.BaseServiceImpl;
import com.rzjm.exercise.module.dao.DeviceWeldingRecordDao;
import com.rzjm.exercise.module.domain.DeviceWeldingRecord;
import com.rzjm.exercise.module.service.DeviceWeldingRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class DeviceWeldingRecordServiceImpl extends BaseServiceImpl<DeviceWeldingRecordDao, DeviceWeldingRecord> implements DeviceWeldingRecordService {

    @Resource
    private DeviceWeldingRecordDao deviceWeldingRecordDao;

    @Override
    public List<DeviceWeldingRecord> getPageByUserId(Page<DeviceWeldingRecord> page, Map<String, Object> map) {
        return deviceWeldingRecordDao.getPageByUserId(page, map);
    }

    @Override
    public List<DeviceWeldingRecord> getListByUserId(Map<String, Object> map) {
        return deviceWeldingRecordDao.getPageByUserId(map);
    }

    @Override
    public Long getWeldingCumulativeTime(Map<String, Object> map) {
        return deviceWeldingRecordDao.getWeldingCumulativeTime(map);
    }
}
